/**
 * Copyright (C) 2009 eXo Platform SAS.
 * 
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 * 
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */


.UIWindow .UIDashboardPortlet {
	margin: 0px;
}

.UIDashboardPortlet.view {
	background: #fff;
	border: 1px solid #b7b7b7;
	border-top: none;
	height: 100%;
}

.UIWindow .UIDashboard {
	border: none;
	margin: 0px;
}

.UIDashboard {
	height: 100%;
}

.UIDashboard .DashboardContainer {
	background: url('background/BgBottom.gif') no-repeat bottom left;
	height: 100%;
}

.UIDashboard .UIDashboardEditForm {
	background: white;
	padding: 10px;
}

.UITabPaneDashboard {
	padding: 0 9px;
}

/*-------------------UITabPaneDashboard-------------------*/

.UITabPaneDashboard  {
	height: auto;
	-moz-border-radius: 5px 5px 0 0;
	-webkit-border-radius: 5px 5px 0 0;
	border-radius: 5px 5px 0 0;
	background-color: #ffcf01;
	padding: 0px 9px;
	margin: 0 9px;
}
.UITabPaneDashboard .UITab {	
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	border-radius: 4px;
	height: 24px;
	line-height: 24px;
	padding:0px 6px 0px 9px;/* orientation=lt */
	padding:0px 9px 0px 6px;/* orientation=rt */
	margin: 4px 2px 0px 0px;/* orientation=lt */
	margin: 4px 0px 0px 2px;/* orientation=rt */
}

.UITabPaneDashboard .NormalTab {
	background-color:#E6E6E6;
}

.UITabPaneDashboard .SelectedTab {
	background-color:#fff;
}

.UITabPaneDashboard input {
	font-size: 11px;
	background-color:#fff;
	text-align: left;/* orientation=lt */
	text-align: right;/* orientation=rt */
	height: 13px;
	padding:0;
}


.UITabPaneDashboard .UITab .Tablabel, .UITabPaneDashboard span {
	font-weight:normal;
	line-height: 14px;	
}


.UITabPaneDashboard .UITab .CloseIcon {
	background: url('background/IconClose.gif') no-repeat center top;
	width: 14px;
	height: 13px;
	cursor: pointer;	
	display:inline-block;
	margin-left: 3px;/* orientation=lt */
	margin-right: 3px;/* orientation=rt */
	vertical-align: middle;
}

.UITabPaneDashboard .SelectedTab .CloseIcon {
	margin:0;
}

.UITabPaneDashboard .AddDashboard {
	background: url('background/AddDashboard.gif') no-repeat center center;
	width: 34px;
	height: 32px;
	float: left; /* orientation=lt */
	float: right; /* orientation=rt */
	cursor: pointer;
}

/*----------------------UIGadgetsSelectorForm-------------------*/

.UIDashboardSelectContainer {
	height: 100%;
}

.UIDashboardSelectContainer .DashboardControlBar {
	height: 23px;
	background: url('background/Dashboard.gif') repeat-x top;
	border-bottom: 1px solid #b7b7b7;
}

.UIDashboardSelectContainer .TitleBar {
	color: black;
	font-weight: bold;
	line-height: 23px;
	float: left; /* orientation=lt */
	float: right; /* orientation=rt */
	padding-left: 10px; /* orientation=lt */
	padding-right: 10px; /* orientation=rt */
}

.UIDashboardSelectContainer .CloseIcon {
	float: right; /* orientation=lt */
	float: left; /* orientation=rt */
	background: url('background/Dashboard.gif') no-repeat left -180px;
	height: 20px;
	width: 20px;
}

.UIDashboardSelectContainer .DashboardItemContainer .InputContainer {
	padding: 4px 0px 4px 10px;
	_padding: 0px 10px;
	background: #ececec;
}

.UIDashboardSelectContainer .DashboardItemContainer .InputContainer input {
	margin: 0 3px 0 0px;
	border: 1px solid #b8babf;
	font-size: 11px; 
	width: 165px;
}

.UIDashboardSelectContainer .DashboardItemContainer .GadgetItemsContainer {
	border-top: 1px solid #b7b7b7;
	font-weight: bold;
}

.UIDashboardSelectContainer .DashboardItemContainer .TopItemContainer {
	background: url('background/Dashboard.gif') repeat-x center -37px;
	height: 11px;
	padding: 1px;
	border-bottom: 1px solid #b7b7b7;
	display: none;
}

.UIDashboardSelectContainer .DashboardItemContainer .UpArrowIcon {
	background: url('background/Dashboard.gif') repeat-x center -98px;
	height: 11px; width: 15px;
	margin: auto;
	cursor: pointer;
}

.UIDashboardSelectContainer .DashboardItemContainer .DisableArrowIcon {
	filter: alpha(opacity=30);
	-moz-opacity: 0.3;
}

.UIDashboardSelectContainer .DashboardItemContainer .MiddleItemContainer {
	overflow: hidden;
}
	
.UIDashboardSelectContainer .DashboardItemContainer .BottomItemContainer {
	background: url('background/Dashboard.gif') repeat-x center -37px;
	height: 11px;
	padding: 1px;
	border-top: 1px solid #b7b7b7;
	display: none;
}

.UIDashboardSelectContainer .DashboardItemContainer .DownArrowIcon {
	background: url('background/Dashboard.gif') repeat-x center -114px;
	height: 11px; width: 15px;
	margin: auto;
	cursor: pointer;
}

.UIDashboardSelectContainer .DashboardItemContainer .DisableContainer {
	background:	url('background/Dashboard.gif') repeat-x center -23px;
}

.UIDashboardSelectContainer .DashboardItemContainer .GadgetCategory {
	padding: 10px;
	text-transform: capitalize;
}

.UIDashboardSelectContainer .GadgetCategory .GadgetTab .LeftCategoryTitleBar {
	background: url('background/CategoryTitleBar.gif') repeat-x left top;
	border: 1px solid #b8babf;
}

.UIDashboardSelectContainer .GadgetCategory .GadgetTab .MiddleCategoryTitleBar {
	height: 23px;
	padding: 0px 8px;
}

.UIDashboardSelectContainer .GadgetCategory .GadgetTab .ArrowIcon {
	background: url('background/ArrowIcon.gif') no-repeat left -14px; /* orientation=lt */
	background: url('background/ArrowIcon.gif') no-repeat right -14px; /* orientation=rt */
	line-height: 23px;
	overflow: hidden;
	padding-left: 18px; /* orientation=lt */
	padding-right: 18px; /* orientation=rt */
	color: #000;
	font-weight: normal;
}

.UIDashboardSelectContainer .GadgetCategory .SelectedTab .ArrowIcon {
	background: url('background/ArrowIcon.gif') no-repeat left 8px; /* orientation=lt */
	background: url('background/ArrowIcon.gif') no-repeat right 8px; /* orientation=rt */
}

.UIDashboardSelectContainer .GadgetCategory .ItemsContainer {
	background: #fff url('background/BGItemsContainer.gif') repeat-x left 1px;
	border: 1px solid #b8babf;
	border-top: none;
	padding: 8px 8px 4px 8px;
}

.UIDashboardSelectContainer .GadgetCategory .UIGadget {
	background: url('background/GadgetControl.gif') repeat-x left top;
	margin: 0px 0px 4px 0px;
	height: 18px;
	line-height: 18px;
	color: #676767;
	padding: 0px;
	background: #f2f2f3;
}

.UIDashboard .UIDashboardSelectContainer .GadgetTitle {
	width: 150px;	
	float: none;
	margin: 0px !important;
}

/*----------------------UIGadgetsContainer-------------------*/

.UIDashboard .UIDashboardContainer .NoGadget {
	text-align: center;
	font-size: 12px; font-weight: bold; 
	padding: 5px; color: #111;
}

/*------------------UIDashboardContainer----------------*/

.UIDashboardContainer {
	height: 100%;
	background: #fff;
}

.UIDashboardContainer .GadgetContainer {
	overflow: auto;
	height: 100%;
	min-height: 400px;
	_height: 400px;
}

.UIDashboardContainer .GadgetContainer .ContainerControlBarL {
	padding: 5px 10px;
	height: 22px;
}

.UIDashboardContainer .ContainerControlBarL .AddIcon {
	background: url('background/Dashboard.gif') no-repeat left -200px; /* orientation=lt */
	background: url('background/Dashboard.gif') no-repeat right -200px; /* orientation=rt */
	padding-left: 30px; /* orientation=lt */
	padding-right: 30px; /* orientation=rt */
	width: 200px; /* orientation=rt */
	font-weight: bold; font-size: 12px;
	display: block;
	line-height: 22px;
	float: right; /* orientation=lt */
	float: left; /* orientation=rt */
}

.UIDashboardContainer .GadgetContainer .AddIcon a {
	text-decoration: underline;
	color: #292929;
	cursor: pointer;
}

.UIDashboardContainer .GadgetContainer .AddIcon a:hover {
	text-decoration: none;
}

.UIDashboardContainer .GadgetContainer .UIColumn {
	float: left; /* orientation=lt */
	float: right; /* orientation=rt */
	width: auto;
	padding: 2px;
}

.UIDashboardContainer .UIGadget .GadgetMenuBar{
	text-align: left; /* orientation=lt */
	text-align: right; /* orientation=rt */
}

.UIDashboardContainer .UITarget {
	background: #f2f2f3;
	margin: 5px 5px 10px 5px;
}

.UIDashboard .Dragging {
	margin: 3px 0px 0px 3px; /* orientation=lt */
	margin: 3px 3px 0px 0px; /* orientation=rt */
}

.UIDashboard .UIPopupWindow {
	width: 240px;
}

#UIAddGadgetPopup {
	width: 225px;
}

#UIAddGadgetPopup .TopLeftCornerDecorator {
	background: url('background/PortalComposer.gif') no-repeat left top;
	padding-left: 7px;
}

#UIAddGadgetPopup .TopCenterDecorator {
	background: url('background/PortalComposer.gif') repeat-x left -34px;
	height: 34px;
	padding: 0px;
}

#UIAddGadgetPopup .TopRightCornerDecorator {
	background: url('background/PortalComposer.gif') no-repeat right top;
	padding-right: 7px;
}

#UIAddGadgetPopup .MiddleLeftSideDecorator {
	background: url(background/MiddlePortalComposer.gif) repeat-y left top;
	padding-left: 3px;	
}

#UIAddGadgetPopup .MiddleCenterDecorator {
	background: #d8dae1 url(background/CenterMiddleWindow.gif) repeat-x left top;
	padding: 4px;
	padding-bottom: 0px;
}

#UIAddGadgetPopup .MiddleRightSideDecorator {
	background: url(background/MiddlePortalComposer.gif) repeat-y right top;
	padding-right: 3px;
}

#UIAddGadgetPopup .UIWindowContent {
	border: 1px solid #bdbcbd;
}

#UIAddGadgetPopup .PopupContent {
	background: #fff;
}

#UIAddGadgetPopup .ResizeButton {
  background: url('background/ResizeBtn.gif') no-repeat right top; /* orientation=lt */
  background: url('background/ResizeBtn-rt.gif') no-repeat left top; /* orientation=rt */
  display: block;
  float: right; /* orientation=lt */
  float: left; /* orientation=rt */
  cursor: nw-resize; /* orientation=lt */
  cursor: ne-resize; /* orientation=rt */
}

#UIAddGadgetPopup .BottomLeftCornerDecorator {
	border: 1px solid #a2a3a9;
	border-top: none;
	background: #d8dae1;
}

#UIAddGadgetPopup .BottomCenterDecorator {
	height: 0px;
	background: none;
}

#UIAddGadgetPopup .BottomRightCornerDecorator {
	padding: 0px 6px 6px 6px;
	background: none;
}

#UIAddGadgetPopup .CloseButton {
	background: url('background/TopExitBtn.gif') no-repeat left top;
	width: 23px;
	height: 17px;
	margin-right: 0px;
}

#UIAddGadgetPopup .PopupTitleIcon {
	margin-left: 0px;
}

#UIAddGadgetPopup .PopupTitle {
	margin-left: 22px;
}

/*----------------------Maximized-------------------*/

.Maximized .UIGadget {
	padding: 5px;
	margin: 0px;
}

.Maximized .GadgetTitle {
	color: #5b5b5b;
	font-weight: bold;
	cursor: move;
	overflow: hidden;
	white-space: nowrap;
}

.Maximized iframe {
	width: 100%;
	_width: 98%;
}